extends "../jifu-2/jifu-2.gd"


func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("造成伤害时附带3层<霜冻>，若目标身上霜冻层数大于10层，造成[雷击*5%*层数]的技能伤害，清空层数", "霜刃")
var p3 = 1
func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType == sys.AtkType.EFF:return
	frostBlade(atkInfo.hitCha)

func frostBlade(cha):
	cha.addBuff(buff.b_shuangDong.new(3))
	var buff = cha.hasBuff("b_shuangDong")
	if buff.life > 10:
		buff.isDel = true
		azurHurtChara(cha, att.mgiAtk * 0.05 * buff.life, sys.HurtType.WEAPON, sys.AtkType.EFF, "霜刃", false, p3)